:ۧ:y&AȆ:$A-:@ۧ:y&A:$AP:ڧ:y&A`:$A:ڧ:y&A:$A:`٧:y&Ap:$A:ا:y&A:$A : ا:y&A:$A@:ק:y&A0:$A:֧:y&A:$A:@֧:y&A:$A@:է:y&A:$A:է:y&AP:$A:`ԧ:y&A:$A:ӧ:y&AP:$A@: ӧ:y&A:$A:ҧ:y&A:$A:ѧ:y&A:$A`:@ѧ:y&Ap :$A :Ч:y&A :$A:Ч:y&A@:$A:P:y&A:$A::y&A:$A8::y&Ap:$A:p:y&A`:$A:Ќ:y&A :$A :0:y&A :$A::y&A:$A::y&A :$A0 :P:y&A:$A::y&AP:$A::y&A:$A-:p:y&A:$AP:Ї:y&A0:$A:0:y&A@ :$A ::y&A@:$A::y&A@:$A:P:y&A:$A::y&A@Ӄ:$A::y&A:$Ah:p:y&A:$A؉:Ђ:y&AӃ:$AH:0:y&A@:$A ::y&Ap:$A ::y&Aྼ:$AP :P:y&AP:$A :ߦ:y&A:$A :ߦ:y&Ap:$A` :`ަ:y&AP:$A :ݦ:y&A:$A҃: ݦ:y&Ab:$A:ܦ:y&AE:$A: 'remove_feed_post_types' ) ) { $url = \get_post_type_archive_link( $this->get_queried_post_type() ); $this->redirect_feed( $url, 'We disable post type feeds for performance reasons.' ); } if ( \is_search() && $this->is_true( 'remove_feed_search' ) ) { $url = \trailingslashit( \home_url() ) . '?s=' . \get_search_query(); $this->redirect_feed( $url, 'We disable search RSS feeds for performance reasons.' ); } } /** * Sends a cache control header. * * @param int $expiration The expiration time. * * @return void */ public function cache_control_header( $expiration ) { \header_remove( 'Expires' ); // The cacheability of the current request. 'public' allows caching, 'private' would not allow caching by proxies like CloudFlare. $cacheability = 'public'; $format = '%1$s, max-age=%2$d, s-maxage=%2$d, stale-while-revalidate=120, stale-if-error=14400'; if ( \is_user_logged_in() ) { $expiration = 0; $cacheability = 'private'; $format = '%1$s, max-age=%2$d'; } \header( \sprintf( 'Cache-Control: ' . $format, $cacheability, $expiration ), true ); } /** * Redirect a feed result to somewhere else. * * @param string $url The location we're redirecting to. * @param string $reason The reason we're redirecting. * * @return void */ private function redirect_feed( $url, $reason ) { \header_remove( 'Content-Type' ); \header_remove( 'Last-Modified' ); $this->cache_control_header( 7 * \DAY_IN_SECONDS ); \wp_safe_redirect( $url, 301, 'Yoast SEO: ' . $reason ); exit; } /** * Retrieves the queried post type. * * @return string The queried post type. */ private function get_queried_post_type() { $post_type = \get_query_var( 'post_type' ); if ( \is_array( $post_type ) ) { $post_type = \reset( $post_type ); } return $post_type; } /** * Checks if the value of an option is set to true. * * @param string $option_name The option name. * * @return bool */ private function is_true( $option_name ) { return $this->options_helper->get( $option_name ) === true; } } {"code":"rest_no_route","message":"Es wurde keine Route gefunden, die mit der URL und der Request-Methode identisch ist.","data":{"status":404}}